home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_2.lha
/
8_2
/
8_2d.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
483b
|
27 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ copy a stream of name_and_address objects
include <error.h>
ain(int, char**)
for (;;)
{
name_and_address a;
if (!(cin >> a))
break;
if (!(cout << a))
break;
name_and_address b = a;
if (!(cout << b))
break;
}
if (!cin.eof())
error("error reading input");
if (cout.bad())
error("error writing output");
return 0;